import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel } from '../model/baseModel';



export interface RegReq extends BasicModel<RegReq> {
  type?: string; // 角色编码
  telnum?: string; // 角色名称
}

export interface RegResult extends BasicModel<RegResult> {

}
export const getRegSmscode = (params?: RegReq | any) =>{
  
  return defHttp.post<RegResult>({ url: '/dpaccount/getSmscodeAliYun', params });

}

export const saveRegNew = (params?: RegReq | any) =>{
 
  return defHttp.post<RegResult>({ url: '/dpaccount/saveRegByValidCodeNew', params });

}

export const savePwdByValidCodeNew = (params?: RegReq | any) =>{
 
  return defHttp.post<RegResult>({ url: '/account/savePwdByValidCodeNew', params });

}
